﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using EasyXaf.ImageViewers;

namespace EasyXaf.Blazor.ImageViewers;

public sealed class BlazorImageViewerModule : ModuleBase
{
    public BlazorImageViewerModule()
    {
        RequiredModuleTypes.Add(typeof(ImageViewerModule));
    }

    protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory)
    {
        base.RegisterEditorDescriptors(editorDescriptorsFactory);

        editorDescriptorsFactory.RegisterPropertyEditorAlias("ImageViewerEditor", typeof(string), false);
        editorDescriptorsFactory.RegisterPropertyEditor("ImageViewerEditor", typeof(string), typeof(ImageViewerEditor), false);
    }
}
